package com.aaa.car.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author Xiujie Yu
 * @Date 2021-02-26
 * @Time 13:48
 */
@FeignClient("memberService")
public interface RemoteMemberService {

    /**
     * 功能描述:用户下订单后修改余额，积分。添加余额记录，积分记录
     * @param memberId int
     * @param totalPrice int
     * @return com.aaa.common.util.Result
     */
    @GetMapping("/member/updateAccountAndIntegration/{memberId}/{totalPrice}")
    double updateAccountAndIntegration(@PathVariable("memberId") int memberId, @PathVariable("totalPrice") double totalPrice);
}
